package com.liuyi.netty.im.commons.codes.data.event.message.playload;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * 群@类型消息载体
 *
 * @author Mr.Fmy
 * @since 2021-12-08
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class PlayloadGroupAlt extends Playload implements Serializable {


    private static final long serialVersionUID = 7622060223102118537L;

    /**
     * alt列表
     */
    private List<String> altUserIds;


    public static final class PlayloadGroupAltBuilder {
        private List<String> altUserIds;
        private String text;

        private PlayloadGroupAltBuilder() {
        }

        public static PlayloadGroupAltBuilder aPlayloadGroupAlt() {
            return new PlayloadGroupAltBuilder();
        }

        public PlayloadGroupAltBuilder altUserIds(List<String> altUserIds) {
            this.altUserIds = altUserIds;
            return this;
        }

        public PlayloadGroupAltBuilder text(String text) {
            this.text = text;
            return this;
        }

        public PlayloadGroupAlt build() {
            PlayloadGroupAlt playloadGroupAlt = new PlayloadGroupAlt();
            playloadGroupAlt.setAltUserIds(altUserIds);
            playloadGroupAlt.setText(text);
            return playloadGroupAlt;
        }
    }
}
